package com.zhentao.model.pojo.market;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Value;

/**
 *
 * @TableName charge_coupon_condition
 */
@TableName(value ="charge_coupon_condition")
@Data
public class ChargeCouponCondition implements Serializable {
    /**
     * 自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 满200
     */
    @TableField(value = "`condition`")
    private Integer condition;

    /**
     * 优惠卷面值 折扣
     */
    private BigDecimal faceValue;

    /**
     * 0：满减 1：折扣 2：直减
     */
    private Integer type;

    /**
     * 有效天数
     */
    private Integer period;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
